<?
    include "../common.php" ;
    $uid = $_POST['uid'] ; 
    $pwd = $_POST['pwd'] ; 
    $tel = $_POST['tel'] ; 
    $sql = "UPDATE users SET  `passWord` = '{$pwd}' , tel = {$tel} WHERE id = {$uid}" ;
    $res = mysqli_query($link,$sql);
    $arr = [] ;
    if( $res ){
        $arr['status'] = 1 ;
        $arr['info'] = '修改成功' ;
    } else{
        $arr['status'] = 0 ;
        $arr['info'] = '修改失败' ;
    }
    echo json_encode($arr);
?>